package com.zhanggm.springboot.demo;

import com.zhanggm.springboot.demo.bean.UserBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动类
 */
@SpringBootApplication
//@ImportResource("classpath:application-bean.xml")
@MapperScan("com.zhanggm.springboot.demo.mapper")
public class SpringBootDemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootDemoApplication.class,args);
    }

    @Bean
    public UserBean userBean(){
        return new UserBean();
    }
}
